home *** CD-ROM | disk | FTP | other *** search
/ .net 2000 August / NET74.ISO / pc / Software / JavaApplet / AnfyMacBeta1.sea / Anfy for Macintosh / anjavapp / lake / anlake.txt < prev    next >
Encoding:
Text File  |  1999-07-05  |  5.6 KB  |  129 lines  |  [TEXT/ttxt]

  1.  
  2.           Anfy Lake - Copyright (C) by Fabio Ciucci 1998/99
  3.  
  4.  
  5. This applet can generate a reflection effect under any GIF or JPG image.
  6. It is very similiar to the Lake and DorianGray applets made by other authors,
  7. but this one has a different approach. Since it it calculated in realtime,
  8. it requires less memory (about 10 times less!).
  9.  
  10. The animation duck.gif is a courtesy of mstanya@bigfoot.com
  11. The mountains example is a courtesy of Laurie Moyer
  12.  
  13. This applet is fully parametrized, so you can generate many kinds of lake
  14. effects.
  15.  
  16. **************************************************************************
  17.  
  18. NECESSARY FILES.
  19.  
  20. As well as an image to be animated and an optional overlay image, the 
  21. following 3 ".class" files must be uploaded: 
  22.  
  23. AnLake.class  
  24. Lware.class
  25. anfy class
  26.  
  27. Plus, AnLake.jar for speedy loading on recent browsers.
  28.  
  29. *************************************************************************
  30.  
  31. EXAMPLE.
  32.  
  33. Insert the <applet> tag in your html document as follows to add this applet
  34. to your page (Comments after the ";" symbol are code explanations and
  35. acceptable min/max values. They are not part of the applet language):
  36.  
  37.  
  38. <applet archive="AnLake.jar" code="AnLake.class" width="300" height="256">
  39. <param name="credits" value="Applet by Fabio Ciucci (www.anfyteam.com)">
  40. <param name="regcode" value="NO">         ; Registration code (if you have it)
  41. <param name="reglink" value="NO">         ; Optional URL link
  42. <param name="regnewframe" value="YES">    ; Reglink opened in new frame?
  43. <param name="statusmsg" value="AnLake applet">  ; Statusbar message
  44. <param name="res" value="1">              ; resolution (1 .. 8)
  45. <param name="image" value="palio.jpg">  ; Image to load
  46. <param name="wavspeed" value="30">      ; Waving speed (1..200)
  47. <param name="perspective" value="10">   ; Perspective (1..100)
  48. <param name="farwaving" value="200">    ; Far waving intensity (1..10000)
  49. <param name="wind" value="10">          ; Wind intensity (1..20)
  50. <param name="windvarval" value="5">     ; Wind variation speed (0..200)
  51. <param name="windvarmin" value="5">     ; Wind variation min (0..20)
  52. <param name="windvarmax" value="15">    ; Wind variation max (0..20)
  53. <param name="halfreflect" value="YES">  ; Half sized reflect area ("YES","NO")
  54. <param name="overimg" value="NO">       ; Optional image over applet
  55. <param name="overimgX" value="0">       ; Over image X offset
  56. <param name="overimgY" value="0">       ; Over image Y offset
  57. <param name="memdelay" value="1000">    ; Memory deallocation delay
  58. <param name="priority" value="3">       ; Task priority (1..10)
  59. <param name="MinSYNC" value="10">       ; Min. milliseconds/frame for sync
  60. Sorry, your browser doesn't support Java. ; Msg in no java browsers
  61. </applet>
  62.  
  63. **********************************************************************
  64.  
  65. INSTRUCTIONS.
  66.  
  67. The following instructions describe how to change parameters:
  68.  
  69. Note: attempting to alter the "credits" parameter will disable the applet.
  70.  
  71. To activate the "reg" parameters read the shareware registration notes.
  72. In the "regcode" parameter, place the registration code you purchased 
  73. from the author. If the code is correct and the applet is run from
  74. the registered domain name, you can use "link" parameters to link to a URL
  75. when the applet is "clicked".
  76.  
  77. If you set "regnewframe" to "YES", you can specify a specific frame location
  78. for the reglink:
  79.  
  80. "_blank"  : To load the link in a new blank unnamed browser window.
  81. "_self"   : To load the link into the same window the applet occupies.
  82. "_parent" : To load the link into the immediate FRAMESET parent.
  83. "_top"    : To load the link into the top body of the window.
  84.  
  85. You can also set a custom frame name, such as "myframe1".
  86.  
  87. With the "overimg" parameter you can specify the name of an image that will
  88. be painted over the applet. The best options are transparent GIF images.
  89. NOTE: Animated GIF images are supported, but will be displayed as animated
  90. sequence only on latest browsers (Netscape 4 and Explorer 4 or newer).
  91. With "overimgX" and "overimgY" you can center the image over the applet area.
  92.  
  93. The GIF/JPG image can be of any size. The applet size must be the same width
  94. as the image, and double in height. For example,if the image is 160x100, the
  95. applet size must be 160x200.
  96.  
  97. Instead, if "halfreflect" parameter="YES", the size of applet has to be set to
  98. 160x150, in other words 3/2 of original size (original size * 1.5).
  99.  
  100. If res=1, remember to place the exact size of the image in "width" and "height"
  101. tags, with height multiplied by 2 (or by 1.5 if halfreflect="YES").
  102. If res=2, place doubled values of width and quadrupled of height, if res=3
  103. triple values of width, sit times the height, etc.
  104. (The "res" parameter is a sort of zoomer).
  105.  
  106. The "wavspeed" parameter (values from 1 to 200) allows you to determine the
  107. speed of waving.
  108.  
  109. With "perspective" parameter (values from 1 to 100), you decide how the waves
  110. have to be stretched for perspective simulation.
  111.  
  112. The "farwaving" parameter (values from 1 to 10000) allows you to determine
  113. how strong the far waves (top of lake) must be.
  114.  
  115. With "wind" parameter (values from 1 to 20), you decide how strong the waving
  116. will be.
  117.  
  118. Optionally, you can make the wind dynamically change, setting the
  119. parameter "windvarval" as higher than 0 (higher values mean higher change).
  120. Then, with the parameters "windvarmin" and "windvarmax" you can control the
  121. min and max values of wind reached.
  122.  
  123. Usually, the reflected area is same size of the normal display area.
  124. If you want, you can change this ratio, setting "halfreflect" to "YES".
  125. The reflect area then will become half size of original image, but remember
  126. to make applet height size = original imagesize * 1.5 , instead of * 2.
  127.  
  128.  
  129.